﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestWeb._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:LoginView ID="lv1" runat="server">
            <AnonymousTemplate>
                <asp:HyperLink id="login" runat="server" NavigateUrl="login.aspx" Text="Login" /><br />
                <asp:HyperLink ID="reg" runat="server" NavigateUrl="~/Register.aspx" Text="Register" />
            </AnonymousTemplate>
            <LoggedInTemplate>
                Hello user!<asp:LinkButton ID="logout" runat="server" Text="Logout" 
                    onclick="logout_Click" />
            </LoggedInTemplate>
        </asp:LoginView>
    </div>
    </form>
</body>
</html>
